package com.ww.fund.calc.npv;

import java.text.ParseException;
import java.text.SimpleDateFormat;

public class NpvDemo {

    public static void main(String[] args) throws ParseException {
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
        System.out.println(dateFormat.parse("2023-01-20 20:20:20.0"));
        System.out.println(dateFormat.parse("2023-01-20 00:00:00.0"));
    }
}
